home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Messaging Service Access Module / Internet PMSAM / Internet PMSAM source / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-07  |  2.0 KB  |  54 lines  |  [TEXT/MPS ]

  1. /*----------------------------------------------------------
  2.  
  3. AOCE Post Office Protocol (3)
  4. Personal Gateway
  5.  
  6. written by Steven Falkenburg-- MacDTS
  7. ©1991 Apple Computer, Inc.
  8.  
  9. ----------------------------------------------------------*/
  10.  
  11. #pragma once
  12.  
  13. #ifndef __TYPES__
  14. #include <Types.h>
  15. #endif
  16.  
  17. #ifndef __MYTYPES__
  18. #include "mytypes.h"
  19. #endif
  20.  
  21. #ifndef __PROCESSES__
  22. #include <Processes.h>
  23. #endif
  24.  
  25. /* application-level globals */
  26.  
  27. extern    Boolean        gDone;                        // set to true when program should quit
  28. extern    Boolean        gWakeUp;                    // make sure wakeupprocess affects the next wne
  29. extern    Boolean        gWakeUpSecondary;            // make sure wakeupprocess affects the next wne
  30. extern    ProcessSerialNumber gOurPSN;            // process serial # for wakeupprocess
  31. extern    Boolean        gNetworkInited;                // true if external network has been inited
  32.  
  33. /* AOCE globals */
  34.  
  35. extern    OCESetupLocation gLocation;                // location in "I'm at"
  36. extern    Boolean        gAOCEInited;                // true if AOCE has been inited
  37. extern    short        gNumSlots;                    // # of slots
  38. extern    SlotSpec    gSlotDatabase[kMaxSlots+1];    // slot database in memory
  39. extern    CreationID    gMSAMCID;                    // creation ID of gateway (MSAM)
  40. extern    CreationID    gAOCESetupCID;                // creation ID of the AOCE setup directory
  41. extern    short        gAOCESetupDSRef;                // ds refnum of the AOCE setup directory
  42. extern    LocalIdentity gLocalIdentity;            // the computer's local identity
  43. extern    Boolean        gLocalIdentityUnlocked;        // true once the user authenticates locally
  44. extern    Boolean        gAuthUnlocked;                // true if the local identity is unlocked
  45. extern    Boolean        gAuthRefresh;                // true if the dir identities need to be refreshed
  46. extern    short        gAuthInCriticalSection;        // semaphore indicating when the ID can't be locked
  47. extern    Boolean        gUpdateSlotInformation;        // true when we need to re-read slot information
  48. extern    HLEventQ    *gHLEventAdd,*gHLEventRemove;//high level event queue head,tail
  49.  
  50. /* external network specific globals */
  51.  
  52. extern    short        gTCPDrvrRefNum;                // driver ref num for MacTCP
  53. extern    char        gOurIPString[256];            // for SMTP gateway "HELO" message
  54.